var details = new Vue({
	el: "#app",
	data: {
		storeId: '', //商品id
	},
	//计算属性	
	computed: {},
	//监听属性
	watch: {},
	//钩子函数	
	created: function() {
		if (document.URL.indexOf("?") < 0) return; //获取当前url地址,如果没参数.直接返回
		var str = document.URL.split("?")[1];
		var obj = {};
		var arr;
		//当只有一个参数传过来时
		if (str.indexOf("&") < 0) {
			if (str.indexOf("=") < 0) return;
			arr = str.split("=");
			obj[arr[0]] = arr[1];
			this.storeId = obj
			console.log(obj);
			return obj;
		}
	},
	mounted() {

	},
	methods: {
		search: function() {
			window.location.href = "search.html"
		},
		immediately: function() {
			window.location.href = "settlement.html"
		},
		add_car: function() {
			window.location.href = "the_shopping_cart.html"
		}
	}
})
